<table style="font-size: x-small;float:right;">
  <tr><td>FS</td><td>Taille</td><td>Occupé</td><td>Disponible</td><td>%Occupé</td><td>Monté sur</td></tr>
  <tr><td><%= `df -h #{HELLA_LOCAL_DONE}`.sub(/(.*)\n(.*)/,'\2').gsub(/\s+([^$])/,'</td><td>\1') %></td></tr>
</table>
 <div class="status_box">
<%  if !Hellanzb.instance.currently_downloading.nil? %>
    Downloading <%= Hellanzb.instance.currently_downloading['nzbName'] %><%= link_to "[annuler]", {:controller => 'nzb', :action => 'cancel_download'} %> <%= Hellanzb.instance.percent_complete %>&#37;@[<%= "#{Hellanzb.instance.rate.to_s}KB/s"%>]<br>
<% end %>
<% if  !Hellanzb.instance.status['currently_processing'].empty? %>
Alaqueuleuleu:
  <% Hellanzb.instance.status['currently_processing'].each do |curr_nzb| %>
      <%= "#{curr_nzb['nzbName']}<br>" %>
  <% end %>
<% end %>
  <% Hellanzb.instance.list.each do |item| %>
    <%= link_to "[-]", :controller => :nzb, :action => :queue_down, :id => item['id'] %>
    <%= link_to "[+]",  :controller => :nzb, :action => :queue_up, :id => item['id'] %>
  <%= item['nzbName'].capitalize %>
  <%= link_to "[delete]",  :controller => :nzb, :action => :dequeue, :id => item['id'] %><br />
<% end %>
</div>
<small>
  Last log entries :
<%=
table = "<table>"
Hellanzb.instance.log_entries.each do |e|
  row = "<tr>"
  e.each do |k,v|
    row << "<td class=\"td_log_" + k.to_s + "\">" + v.to_s + "</td>"
  end
  table << row + "</tr>"
end
table << "</table>" %>
</small>
